package Reaction::UI::Renderer::XHTML;

use strict;
use base 'Catalyst::View::TT';
use Reaction::Class;

__PACKAGE__->config({
  CATALYST_VAR => 'ctx',
  RECURSION => 1,
});

override 'render' => sub {
  my $self = shift;
  local $self->template->{SERVICE}{CONTEXT}{BLKSTACK};
  local $self->template->{SERVICE}{CONTEXT}{BLOCKS};
  return super();
};

1;
